{% extends "base.html" %}

{% block content %}
  
    <div id="container">
        <div id="menu">
            {% block nav-global %}
                <!-- MENU -->
                {% if user.is_staff %}
                <a class='transition button small' href="{% url admin:index %}">Admin</a>
                     <a class='transition button small' href="{% url admin:xcheng_blogpost_add %}">Add post</a>
                {% endif %}

            {% endblock %}
        </div>

        <div id="content">
            {% block blog_content %}{% endblock %}
            {% block sidebar %}
            {% endblock %}
        </div>
    </div>
{% endblock %}

{% block pageSpecScript %}

<script type="text/javascript">
    $(document).ready(function(){   
    initWeb(4);
    });
</script>
{% endblock %}